#obj-m := exChar.o
#KERNELDIR ?= /lib/modules/$(shell uname -r)/build
#PWD := $(shell pwd)
#default:
#	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
#
#
#clean:
#	rm -rf .*.o.cmd .*.cmd .tmp_versions *.o *.ko *.mod.c *.order *.symvers
#

obj-m := exChar.o
obj-y := -DEXPORT_SYMTAB

#KBUILD_EXTRA_SYMBOLS=/linux-3.1.4/Module.symvers

KVERSION = $(shell uname -r)

all: 
	make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
	rm -f *.o *.ko *.cmd
